Skip to content

ci(release): drop stray -- when forwarding --release-as to pnpm script#96

Merged
PAMulligan merged 1 commit into
mainfrom
fix/release-workflow-pass-args
May 15, 2026
Merged

ci(release): drop stray -- when forwarding --release-as to pnpm script#96
PAMulligan merged 1 commit into
mainfrom
fix/release-workflow-pass-args

Conversation

@PAMulligan
Copy link
Copy Markdown
Contributor

Summary

The Release workflow appeared to succeed but produced the wrong version: release_type=minor on 0.5.0 yielded v0.5.1 instead of v0.6.0.

pnpm 7+ passes any args after a script name directly to the script — so pnpm release -- --release-as minor forwards a literal -- as the first argument to commit-and-tag-version. The tool silently ignores it and falls back to an auto bump. On a pre-1.0 version, the auto bump is conservative (treats feat: as patch), so the request for minor came out as 0.5.0 → 0.5.1.

Drop the --. The "auto" branch already calls pnpm release with no args, so this only affects the explicit-type branch.

Surfaced while shipping v0.6.0 (failed run produced v0.5.1, since rolled back). With this fix, requesting minor will correctly run commit-and-tag-version --release-as minor and bump to 0.6.0.

Test plan

  • Re-trigger Release workflow with release_type=minor once merged; verify it tags v0.6.0.

🤖 Generated with Claude Code

pnpm 7+ passes any args after a script name directly to the script, so
`pnpm release -- --release-as minor` forwards the literal `--` as an
argument to commit-and-tag-version, which silently ignores it and falls
back to an auto bump. On pre-1.0 versions that auto bump is conservative
(feat = patch), so requesting `minor` produced 0.5.0 → 0.5.1 instead of
0.6.0. Drop the `--`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the area: ci-cd CI/CD workflows label May 15, 2026
@PAMulligan PAMulligan merged commit bdd0d07 into main May 15, 2026
7 checks passed
@PAMulligan PAMulligan deleted the fix/release-workflow-pass-args branch May 15, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci-cd CI/CD workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant